﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_SupplierList.aspx.cs" Inherits="SaleSystem.BaseData.frm_SupplierList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>供应商管理</title>
</head>
<body>
<form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1">
        <Items>
            <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click" ></ext:Button>
            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>           
        </Items>    
    </ext:Toolbar> 
    <ext:Form runat="server" ID="Form2" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false">
        <Rows>
            <ext:FormRow>
            <Items>
            <ext:TextBox runat="server" ID="tb_Supp_Code" Label="供应商编码" Width="200px" TabIndex="1"></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_Supp_Name" Label="供应商名称" Width="200px" TabIndex="2"></ext:TextBox>
                    </Items>
            </ext:FormRow>
            <ext:FormRow>
             <Items> 
                    <ext:TextBox runat="server" ID="tb_Supp_LinkMan1" Label="联系人1" Width="200px" TabIndex="3"></ext:TextBox>                    
                    <ext:TextBox runat="server" ID="tb_Supp_Tel1" Label="手机1" Width="200px" TabIndex="4"></ext:TextBox>                    
                    </Items>
            </ext:FormRow>
                  <ext:FormRow>
             <Items>
                    <ext:TextBox runat="server" ID="tb_Supp_LinkMan2" Label="联系人2" Width="200px" TabIndex="5"></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_Supp_Tel2" Label="手机2" Width="200px" TabIndex="6"></ext:TextBox>                    
                    </Items>
            </ext:FormRow> 
        </Rows>
    </ext:Form>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="供应商信息列表"   IsDatabasePaging="true" DataKeyNames="Supp_Id,Supp_Name" EnableRowNumber="true" onrowcommand="gv_List_RowCommand" AllowPaging="true" onpageindexchange="gv_List_PageIndexChange" >
    <Columns>
        <ext:BoundField ColumnID="Supp_Code" DataField="Supp_Code" DataTooltipField="Supp_Code" HeaderText="供应商编码" Width="100px" />
        <ext:BoundField ColumnID="Supp_Name" DataField="Supp_Name" DataTooltipField="Supp_Name" HeaderText="供应商名称"   Width="150px"/>
        <ext:BoundField ColumnID="Supp_LinkMan1" DataField="Supp_LinkMan1" DataTooltipField="Supp_LinkMan1" HeaderText="联系人1" Width="80px"/>
        <ext:BoundField ColumnID="Supp_Tel1" DataField="Supp_Tel1" DataTooltipField="Supp_Tel1" HeaderText="手机1" Width="80px"/>
        <ext:BoundField ColumnID="Supp_LinkMan2" DataField="Supp_LinkMan2" DataTooltipField="Supp_LinkMan2" HeaderText="联系人2" Width="80px"/>
        <ext:BoundField ColumnID="Supp_Tel2" DataField="Supp_Tel2" DataTooltipField="Supp_Tel2" HeaderText="手机2" Width="80px"/>
        <ext:BoundField ColumnID="Supp_Memo" DataField="Supp_Memo" DataTooltipField="Supp_Memo" HeaderText="备注" Width="80px"/>
        <ext:LinkButtonField ColumnID="eidt" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="60px" />           
        <ext:LinkButtonField ColumnID="delete" CommandName="Delete"  ConfirmIcon="Question" ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px"/>
    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"  EnableConfirmOnClose="true" Title="新增供应商" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px" Height="500px"></ext:Window>
    </form>
</body>
</html>
